Function CollectOrphans2()
The collection of the objects selected for deletion:
whereby relations to active objects also exist:
Logically deleted objects are shown in grey, "living" objects in green.
The function iteratively removes all those objects from the given collection that cannot be deleted without creating unresolved references: